package vip.ola.core.common.constant;

public interface CodeConstant {

    String PRIVATE_KEY = "PRIVATE_KEY";

    // 逻辑删除,0=未删除,1=已删除
    Integer LOGIC_NOT_DELETE = 0;
    Integer LOGIC_DELETE = 1;

    String ROLE_CODE_NORMAL = "ROLE_CODE_NORMAL";

    // 用户类型:1=用户,2=代理,3=码商,4=子账号
    Integer CODE_USER_TYPE = 1;
    Integer CODE_AGENT_TYPE = 2;
    Integer CODE_CODE_TYPE = 3;
    Integer CODE_CODE_SUB_TYPE = 4;

    Integer CODE_STATUS_AUDIT_ING = -1;    // 等待审核
    Integer CODE_STATUS_NOT_AUDIT = -2;     // 审核不通过
    Integer CODE_STATUS_STOP = 0;            // 停止使用
    Integer CODE_STATUS_OK = 1;            // 使用中

    // 0-无密码,1-仅密码验证,2-密码+谷歌组合验证',
    Integer SECURITY_TYPE_NONE = 0;
    Integer SECURITY_TYPE_PASS = 1;
    Integer SECURITY_TYPE_PASS_GOOGLE = 2;

    // -2-订单过期,-1-支付失败,0-订单生成,1-支付中,2-支付成功,3-业务完成
    Integer ORDER_STATUS_EXPIRED = -2;    // 订单过期
    Integer ORDER_STATUS_FAILED = -1;    // 支付失败
    Integer ORDER_STATUS_INIT = 0;        // 订单生成
    Integer ORDER_STATUS_PAYING = 1;    // 支付中
    Integer ORDER_STATUS_SUCCESS = 2;    // 支付成功
    Integer ORDER_STATUS_COMPLETE = 3;    // 业务完成

    // 操作阶段:0=生成订单,1=打开订单页,2=扫码,3=点击支付跳转按钮,4=进入app支付,5=复制转账
    Integer OPERATE_PHASE_INIT = 0;
    Integer OPERATE_PHASE_OPEN = 1;
    Integer OPERATE_PHASE_SCAN = 2;
    Integer OPERATE_PHASE_CLICK = 3;
    Integer OPERATE_PHASE_PAY = 4;
    Integer OPERATE_PHASE_TRANSFER = 5;


    Integer FUND_ADD = 1; // 加款
    Integer FUND_SUB = 2; // 减款

    // 业务类型,1-收款,2-提现,3-调账,4-充值,5-差错处理,6-收益
    Integer TYPE_COLL = 1;               // 收款
    Integer TYPE_OUT = 2;                // 打款(提现)
    Integer TYPE_CHANGE_BALANCE = 3;     // 调账
    Integer TYPE_RECHARGE = 4;           // 充值
    Integer TYPE_ERROR_HANKLE = 5;       // 差错处理
    Integer TYPE_PROFIT = 6;             // 收益

    // 二维码类型
    Integer CODE_TYPE_ALIPAY = 1;
    Integer CODE_TYPE_WEXIN = 2;
    Integer CODE_TYPE_JUHE = 3;

    String QR_ALIPAY_PREFIX = "https://qr.alipay.com";
    String QR_WEXIN_PREFIX = "wxp://";

}
